package com.clouddisk.file.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import jakarta.validation.constraints.NotNull;

@Data
@Schema(description = "文件上传请求")
public class FileUploadDTO {

    @NotNull(message = "父文件夹ID不能为空")
    @Schema(description = "父文件夹ID")
    private Long parentId;

    @NotNull(message = "文件不能为空")
    @Schema(description = "文件")
    private MultipartFile file;

    @Schema(description = "文件MD5值")
    private String fileMd5;
} 